package models.send;
import org.json.JSONObject;
public class SMSCODE {
    public static int code(sms send){
        String json = new String();
        models.send.sms sms=send;
        json = sms.SendSMS();
        try {
            JSONObject jsonObject=new JSONObject(json);
            String time = jsonObject.getString("time");
            String msgId = jsonObject.getString("msgId");
            int code = jsonObject.getInt("code");
            return code;
        }catch (Exception ex){
          return 1;
        }
    }

}
